from django.urls import path
from Login import views
from .views import CaptchaView, SendSMSCodeView, SMSLoginView, TestSMSLoginView, DingTalkCallbackView, DDGetUrl

urlpatterns = [
    path('captcha/', CaptchaView.as_view(), name='get_captcha'),  # 获取图片验证码
    path('send_sms/', SendSMSCodeView.as_view(), name='send_sms_code'),  # 发送短信验证码
    path('sms_login/', SMSLoginView.as_view(), name='sms_login'),  # 短信验证码登录
    path('test_sms_login/', TestSMSLoginView.as_view(), name='test_sms_login'),  # 写死验证码登录测试
    path('ddcallback/', DingTalkCallbackView.as_view(), name='dingtalk_callback'),  # 钉钉第三方登录回调
    path('dingtalk_auth_url/', DDGetUrl.as_view(), name='dingtalk_auth_url'),  # 获取钉钉扫码登录URL
    path('get_thirdparty_avatar_by_userid/', views.get_thirdparty_avatar_by_userid, name='get_thirdparty_avatar_by_userid'),
    path('room/',views.TestWebsocket.as_view(),name='cs')
]
